list1 = [1, 2, 1, 3, 5, 5]
list2 = []
for i in list1:
    if i not in list2:
        list2.append(i)
# print(list2)
lst = []
with open('abc.txt', 'r', encoding='utf8') as f:
    a = f.readlines()
    for i in a:
        b = i.split(',')
        lst.append(b)
    print(lst)

import re
import time
import requests
import uuid

url_page = 'https://www.enterdesk.com/tag-%E9%85%A5%E8%83%B8/'
ret = requests.get(url=url_page)
print(ret.text)
url_list = re.findall(r'https://up.enterdesk.com/edpic_360_360/.*?\.jpg', ret.text)
for url in url_list:
    res = requests.get(url=url)
    time.sleep(0.5)
    content = res.content
    name = str(uuid.uuid1()) + '.jpg'
    with open(name, 'wb') as f:
        print('正在下载%s' %name)
        f.write(content)


lst1 = [1, 2, 1, 2, 3]
for i in lst1:
    c = 0
    for j in lst1:
        if i == j:
            c += 1
    if c == 1:
        print(i)


h = 90
h1 = h / 3
h2 = h1 / 3
h3 = h2 / 3
h4 = h3 / 3
h5 = h / 3 ** 5
# print(h5)

n = 6
# a = h/3**(n-1)
# print(a)
# a = 0
for i in range(n):
    print(h)
    # a = h / 3 ** (n - 1)
    h/=3

def func(h,n):
    an = h/(3**n)
    total = 0
    for i in range(1,n+1):
        total += h/(3**i)
    print(total)
func(90,6)

import time
s = time.time()
lst = []
for i in range(1,1000001):
    lst.append(i)
e = time.time()
print(e-s)


a = time.time()
lst1 = [j for j in range(1,10001)]
b = time.time()
print(b-a)



